home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / database / packftp.zip / README.TXT < prev   
Text File  |  1994-12-23  |  4KB  |  103 lines

  1. Title:  FTP Site List to Database Conversion
  2. Author: Mark R. Rinfret (mrr@mrsoft.network23.com)
  3. Date:   12/23/94
  4. History:
  5. 12/23/94,MRR: Added URL attribute.
  6. 11/29/94,MRR: Program creation.
  7. **********************************************************************
  8.  
  9. Description:
  10.  
  11. Perry Rovers (Perry.Rovers@kub.nl) maintains and distributes an extensive
  12. list of international FTP sites. The list is distributed as a series of
  13. tagged ASCII text files. While the content is invaluable, the format is
  14. somewhat difficult to navigate.
  15.  
  16. I have created a simple C program which will convert Perry's list into a
  17. text file of records (1 line = one record) containing quote-delimited,
  18. comma-separated values. The resulting file is suitable for importing into
  19. any of a number of database products, including Microsoft Access 2.0,
  20. my choice.
  21.  
  22. To prepare the raw input file for conversion, all of the list segments
  23. (Usenet articles) must be concatenated into one large file. Be sure to
  24. save the articles without mail headers or delete all mail headers before
  25. processing the list. The list will contain a fair amount of introductory
  26. text explaining the list format. This can be left in. Just before the first
  27. actual site definition, insert the following string, left-justified:
  28.  
  29. BEGIN_FTP_LIST
  30.  
  31. Thus, the first part of the prepared (raw) list will look like this:
  32.  
  33. BEGIN_FTP_LIST
  34. Site   : 161.105.2.22
  35. Country: France
  36. GMT    : +1
  37. Date   : 31-Jul-94
  38. Source : Yves.Dehery@ccett.fr
  39. Alias  : etocs
  40. Admin  :
  41. Organ  : Centre Commun d'Etude de Telecommunication et de Telediffusion
  42.      (joint France Telecom and TDF research center, CCETT), Rennes
  43. Server :
  44. System : Unix
  45. Comment: MPEG compression - MPEG bit-streams - MPEG software; THIS IS A
  46.      TEMPORARY ENTRY [this site must get a name soon]
  47. Files  : MPEG: audio (decod, parser, sound), video (ccett)
  48.  
  49. Site   : a.cs.uiuc.edu
  50. Country: USA
  51. GMT    : -6
  52. Date   : 11-Mar-94
  53. Source : old ftp-list
  54. Alias  :
  55. Admin  :
  56. Organ  : University of Illinois - Urbana/Champaign, Urbana, Illinois,
  57.      CS dept.
  58. Server :
  59. System : Unix
  60. Comment: max. 60 users; Problem: Failed to get host information
  61. Files  : achien; AutoClassII; FWF; locally developed software: ACSL, CHARM,
  62.      Choices, edebug, edels, epoch-files, era, perts, RT, SME, treemacs;
  63.      networking; PDC; PEXpapers; QPE; Qual; ROLOG; sattrack; sbprolog;
  64.      Sun3; Sun4; tech-reports; timex; UNO; vi; womcs
  65.  
  66. (End of example)
  67.  
  68. Save this file as "ftp.raw". Next, run the program PACKFTP.EXE from the DOS
  69. command line prompt to create the database import file, "ftp.imp":
  70.  
  71.     packftp ftp.raw ftp.imp
  72.  
  73. What you do next depends upon what you intend to do with the data. I chose to
  74. import it into a Microsoft Access 2.0 database. You might want to use some 
  75. other database product, spreadsheet, etc.
  76.  
  77. If you choose to use my included Access database, open the included database,
  78. named "FTPSITE.MDB". The database is preloaded with a recent copy of the FTP
  79. Site List data. Go ahead and play with it a bit. Select the Form view in the
  80. Database window, then double-click on the FTPSites form entry. A form will
  81. open displaying the first record in the database. The default query underlying
  82. this form is one which yields all sites in site name order.
  83.  
  84. When you are ready to import the converted data, select the Macro view in the
  85. Database window, then double-click on the ImportData macro name. All records
  86. in the database are first deleted and then the new data is imported.
  87.  
  88. Feel free to alter the database to suit your needs. Its minimal capabilities
  89. were enough to serve my purposes. If you don't have Microsoft Access 2.0 but
  90. you're curious, I've included a bitmap file, ACCESS.BMP, which you can view
  91. in Windows Paintbrush.
  92.  
  93. This distribution also includes the source and project definition file for the
  94. PACKFTP program. I used Borland C++ 4.0 to build the program, but it's plain
  95. vanilla and should compile with just about anything.
  96.  
  97. Enjoy!
  98.  
  99.     Mark Rinfret
  100.   
  101.  
  102.      
  103.